package com.tiancheng.trade.order.convert;

import com.tiancheng.trade.order.model.SubOrder;
import com.tiancheng.trade.order.vo.open.order.OpenQueryOrderInfoResSubOrderVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: kellen
 * @Description: 子订单 convert
 * @Date: create in 2024/12/4 14:43
 */
@Mapper(componentModel = "spring")
public interface SubOrderConvert {
    SubOrderConvert INSTANCE = Mappers.getMapper(SubOrderConvert.class);

    OpenQueryOrderInfoResSubOrderVo subOrder2OpenQueryOrderInfoResSubOrderVo(SubOrder subOrder);

    List<OpenQueryOrderInfoResSubOrderVo> subOrders2OpenQueryOrderInfoResSubOrderVos(List<SubOrder> subOrder);
}
